package pl.makimo.ksr.gui;

import javax.swing.JTextField;

import pl.makimo.data.WeatherRecord;
import pl.makimo.fuzzy.sets.DiscreteFuzzySet;
import pl.makimo.fuzzy.sets.FuzzySet;
import pl.makimo.fuzzy.sets.memberships.MembershipFunction;
import pl.makimo.fuzzy.sets.memberships.RectangularMembershipFunction;
import pl.makimo.fuzzy.sets.memberships.TrapezoidMembershipFunction;
import pl.makimo.fuzzy.sets.memberships.TriangularMembershipFunction;

public class DiscreteType1FuzzySetCreator extends FuzzySetCreator {
	public DiscreteType1FuzzySetCreator() {
		super();
		parametersPane.add(createFunctionMembershipButton(TrapezoidMembershipFunctionCreator.class, "Trapezoid Function"));
		parametersPane.add(createFunctionMembershipButton(TriangularMembershipFunctionCreator.class, "Triangular Function"));
		parametersPane.add(createFunctionMembershipButton(RectangularMembershipFunctionCreator.class, "Rectangular Function"));
	}

	@Override
	public FuzzySet<WeatherRecord> getFuzzySet() {
		return new DiscreteFuzzySet<WeatherRecord>(this.membershipFunction);
	}
}
